<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${requestScope.contextPath}/css/mngr/common.css" rel="stylesheet" type="text/css" />
<title><fmt:message bundle="${config}" key="mngr.title" /></title>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
</head>
<body>
			<table border=0 cellpadding=0 cellspacing=0 width=100% align="center">
				<tr>  
					<td align="left">
						<table border=0 width="100%" class="unnamed2">
						<tr>
							<td align=left>총 <b>${fn:length(appList)}</b> 건</td>
						</tr>
						</table>
					</td>
				</tr>
				<tr bgcolor=ffffff>
					<td>
						<table width='100%' border="0" cellpadding="0" cellspacing='5' bgcolor='F0F9FC'>
							<tr> 
								<td>
								
								<table width='100%' border="0" cellpadding='5' cellspacing='1' bgcolor='BED7DF'>
								<tr bgcolor=E7F6FB>	
									<td align="center" width="10%"><font color=1CABD4><b>버 전</b></font></td>
									<td align="center" width="*"><font color=1CABD4><b>앱 명</b></font></td>
									<td align="center" width="18%"><font color=1CABD4><b>파일 1</b></font></td>
									<td align="center" width="18%"><font color=1CABD4><b>파일 2</b></font></td>
									<td align="center" width="18%"><font color=1CABD4><b>파일 3</b></font></td>
									<td align="center" width="18%"><font color=1CABD4><b>업그레이드일시</b></font></td>
								</tr>
								<c:choose>
								<c:when test="${fn:length(appList) == 0}">
								<tr>
									<td bgcolor="FFFFFF" align="center" valign="middle" height="50" colspan="6" class="unnamed1">앱 히스토리 정보가 존재하지 않습니다.</td>
								</tr>
								</c:when>
								<c:otherwise>
								<c:forEach items="${appList}" var="map" varStatus="state">
								<tr bgcolor="FFFFFF">
									<td align="center">${map.FRF_VER}</td>
									<td align="center">${map.APP_NM}</td>
									<td align="center"><a href="${requestScope.contextPath}/business/mngr/service/appDownload.do?servNo=${map.SERV_NO}&amp;appNo=${map.APP_NO}&amp;fileNum=1">${map.FILE_R_NM_1}</a></td>
									<td align="center"><a href="${requestScope.contextPath}/business/mngr/service/appDownload.do?servNo=${map.SERV_NO}&amp;appNo=${map.APP_NO}&amp;fileNum=2">${map.FILE_R_NM_2}</a></td>
									<td align="center"><a href="${requestScope.contextPath}/business/mngr/service/appDownload.do?servNo=${map.SERV_NO}&amp;appNo=${map.APP_NO}&amp;fileNum=3">${map.FILE_R_NM_3}</a></td>
									<td align="center">${map.UPGD_DTTM}</td>
								</tr>
								</c:forEach>
								</c:otherwise>
								</c:choose>
							</table>
						</td>
					</tr>
				</table>
					</td>
				</tr>
			</table>
	</body>
</html>